import {defineStore} from "pinia";

/**
 * 试题store
 */
export const examBaseStore = defineStore('examBase', {
    state: () => ({
        examInsertOpen: false,
        examBaseId:0,
        addExamQuestionId:0,
        openAddQuestion:false,
        openAddUser:false,
        openAddTime:false,
        openAddCorrect:false,
    }),
    actions: {
        setExamInsertOpen(value: boolean) {
            this.examInsertOpen = value
        },
        setExamBaseId(value: number) {
            this.examBaseId = value
        },
        setAddExamQuestionId(value: number) {
            this.addExamQuestionId = value
        }
        ,setOpenAddQuestion(value:boolean){
            this.openAddQuestion = value
        },setOpenAddUser(value:boolean){
            this.openAddUser = value
        },setOpenAddCorrect(value:boolean){
            this.openAddCorrect=value
        },
        setOpenAddTime(value:boolean){
            this.openAddTime=value
        }
    }, getters: {}
})